<template>
    <div class="footer">
        <router-view></router-view>

        <van-tabbar v-model="active" route>
            <van-tabbar-item icon="home-o" to="/footer/home">首页</van-tabbar-item>
            <van-tabbar-item icon="send-gift-o" to="/footer/tuan">爆爆团</van-tabbar-item>
            <van-tabbar-item icon="orders-o">订单</van-tabbar-item>
            <van-tabbar-item icon="friends-o">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data() {
        return {
        active: 0,
        };
    },
};
</script>

<style scoped>
.tabbar{
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
  background-color: white;
}
</style>